credit2: Make fake runq map initilization explicit
authorKeir Fraser <keir@xen.org>
Fri, 29 Oct 2010 09:19:30 +0000 (10:19 +0100)
committerKeir Fraser <keir@xen.org>
Fri, 29 Oct 2010 09:19:30 +0000 (10:19 +0100)
Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
xen/common/sched_credit2.c

index 0bf81c9d4c0519422e9d1ff61d42ed7c10ac2e5d..0735f3b2179afbc9dc1207ddfee4f802166c6342 100644 (file)
@@ -1135,6 +1135,7 @@ make_runq_map(struct csched_private *prv)
     prv->runq_count = 1;
     prv->rqd[0].cpu_min = 0;
     prv->rqd[0].cpu_max = NR_CPUS;
+    memset(prv->runq_map, 0, sizeof(prv->runq_map));
 }
 
 static int